home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_6.lha
/
8_6
/
stream.h
< prev
next >
Wrap
Text File
|
1993-08-08
|
857b
|
37 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ Exercise 8.6
/ <streambuf.h>
/ Implementation of stream I/O
/ using the standard I/O functions.
ifndef STREAM_H
define STREAM_H
define istream xistream /* DELETE */
define ostream xostream /* DELETE */
define filebuf xfilebuf /* DELETE */
define streambuf xstreambuf /* DELETE */
define cout xcout /* DELETE */
define cin xcin /* DELETE */
define cerr xcerr /* DELETE */
lass istream;
lass ostream;
/ class common;
num state_value { _good=0, _eof=1, _fail=2, _bad=4 };
num open_mode { input=0, output=1, append=2 };
truct whitespace { };
include <stdio.h>
include <streambuf.h>
include <filebuf.h>
include <ostream.h>
include <istream.h>
xtern ostream cout, cerr;
xtern istream cin;
endif /* STREAM_H */